/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author vladimir
 */
@ManagedBean
@RequestScoped
public class MainManagedBean {
     
    private int language = 1;
    
    /**
     * Creates a new instance of MainManagedBean
     */
    public MainManagedBean() {
        
    }

    public int getLanguage() {
        return language;
    }

    public void setLanguage(int language) {
        this.language = language;
    }
    
    public String getMainPageContent() {
        return db.HibernateUtil.getPage("main").getContent();
    }
    
    public String getMembersPageContent() {
        return db.HibernateUtil.getPage("members").getContent();
    }
    
    public String getPhotosPageContent() {
        return db.HibernateUtil.getPage("photos").getContent();
    }
    
    public String getVideosPageContent() {
        return db.HibernateUtil.getPage("videos").getContent();
    }
    
    public String getContactsPageContent() {
        return db.HibernateUtil.getPage("contacts").getContent();
    }
    
}
